<!DOCTYPE html>
<html>
<head>
    <title>团队成员信息</title>
	<#include "/header.html">
</head>
<body>
<style>
    th{
        text-align: center;
    }
</style>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class="panel-heading">团队名称：{{teamInfoName}}（团队人数：{{teamInfoNum}}人）</div>
			<#if shiro.hasPermission("sys:bteamrelation:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("sys:bteamrelation:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("sys:bteamrelation:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
                    <div class="form-group">
                        <div class="col-sm-2 control-label">团队ID</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bTeamRelation.teamId" placeholder="团队ID"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">团队名称</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bTeamRelation.teamName" placeholder="团队名称"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">成员userId</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bTeamRelation.userId" placeholder="成员userId"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">公众号标识</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bTeamRelation.gzhCode" placeholder="公众号标识"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">当前所属团队（0-离开 1-正在）</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bTeamRelation.userTeamNow" placeholder="当前所属团队（0-离开 1-正在）"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">邀请人userId</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bTeamRelation.inviterId" placeholder="邀请人userId"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">成员角色 0-团队普通成员 1-团队管理员 2-团队队长</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bTeamRelation.teamRole" placeholder="成员角色 0-团队普通成员 1-团队管理员 2-团队队长"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">展示状态（0停用 1正常）</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bTeamRelation.userFlag" placeholder="展示状态（0停用 1正常）"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">创建时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bTeamRelation.createTime" placeholder="创建时间"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">更新时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bTeamRelation.updateTime" placeholder="更新时间"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">备注</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bTeamRelation.teamRemark" placeholder="备注"/>
                        </div>
                    </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/bteamrelation.js?_${.now?long}"></script>
</body>
</html>
